Hair is countable, water is uncountable. However, glass of water, it is countable, it counts the glass, it isn't count the water.
一根头发, Is it a hair ? It is grammatically correct.
一 =one, 根=piece, 头发=hair . According to your Chinese writting in a question form, it should be written as: is it a piece of hair?