See a podiatrist
What you call a pimple is likelynot a pimple.
Have you ever seen a black pimple on your face? Neither have i, not have i seen a black pimple on the foot. Hence, likely it is not a pimple. Go to the podiatrist or dermatologist and let them examine and treat it.