Thank you for your query.
If I am correct then you mention that your daughter did not have hair from birth. However you also mention that the doctor diagnosed it as fungal infection
. It is very surprising to see fungal infection of the skin/hair immediately on birth. Unless I am able to look at the picture it is difficult to comment on the cause on the black dots which you are mentioning.
Genetic conditions are known where there are no or sparse hair growth. It is better to consult the treating doctor who will be in a better position to guide you.
I hope I have answered your query to your satisfaction.