It was/is probably a condition called pyogenic granuloma
This is a misnomer as it does not arise due to any bacteria but from some small local trauma that precipitates the inflammatory process.
It is probably best to get it assessed by your nearest dermatologist
The treatment would ideally involve using a hyfrecator
& cauterising the area to arrest the bleeding & destroy the underlying tissue.
Having said all this, it is always best to be assessed by a dermatologist on the spot & then take a deciscion. Online, we can at best provide pointers in the direction you should be going. Cheers & Good Luck!
Dr Praveen Rodrigues MD
Dermatologist, Vikram Hospital, bangalore