As temperature increases the speed of the molecules as well as the pressure also increases. Therefore the number collisions against the sides of the container (in this case the balloon) will increase because the pressure increased. When the temperature decreased when the balloon was put in a freezer the molecules slowed down, and the pressure decreased, so the number of collisions with the side of the balloon also decreased and the balloon shrunk. Hope that helps!