Can masah of the head be performed with hair oil applied over it?

If the oil is a barrier then you should make sure the water reaches the scalp and it will be correct.