If you start rubbing the balloon against the hair it causes electrons to move from the hair and since electrons are negatively charged, the balloon acquires a negative charge, while the hair, with its loss of negative charges, now has a net positive charge.