It's magic! Or science, actually, because this trick is from Steve Spangler. THe static electricity in the balloon is the key.
When an object has a negative charge, it will repel the electrons of other objects and attract that object’s protons. When the neutrally charged object is light enough, like the match in this case, the negatively charged object will attract the lightweight object. But try attracting a match while it’s laying on a table... it doesn’t work! You need to reduce the amount of other forces acting on the match for this experiment to work, and that’s why you balance the match on the rim of a nickel. Balancing the match enables less surface area to be directly effected by friction, which enables the match to rotate more freely.