When a rubber balloon is rubbed against hair, electrons are transferred from the hair to the balloon, giving it a negative charge. As a result, the balloon gets negatively charged and the hair positively charged.
During the rubbing process, friction transfers electrons from one substance to another. In this scenario, rubber is more likely to attract electrons than hair.