Check it if you have too much unwanted nutrient in the water or over feed, and it better to location your tank with direct sunlight, don't forget to set less lighting.
If you add some chemical to the fish tank, maybe it is the reason.
If the black algae can be wiped off, it means it is algae. If...