Get an examination done by a dentist to check whether decay is present & if yes, how deep it is. If it’s not very deep like you are saying, there is no pain, cosmetic filling ( composite filling) will be done, which will remove the blackish discolouration ( in case it is dental caries).
Next Steps
Visit a dentist to get it examined.