When you rub an inflated balloon on your head and it makes your hair stand up, the force that makes the hair stand up is known as static electricity.
When the balloon is rubbed on the head, electrons from the hair atoms move into the balloon, thus making the balloon to be negatively charged and the hair positively charged due to loss of electrons.
Unlike charges attracts. Thus, when you try to pull the balloon away slowly, the positively charged hair and the negatively charged balloon will attract each other and this is usually what makes the hair stand up.
More on static electricity can be found here: brainly.com/question/24160155