You have a regular balloon, and you decide to heat it up. The gas particles inside the balloon will gain kinetic energy, and so, the gaseous particles will collide with the internal wall of the balloon with a higher frequency and more energy. This is what we call pressure, which will, as a result, increase. This is more commonly generalised to be Gay-Lussac's law, which formally states that the pressure of a gas is directly proportional to its absolute temperature.
Now, as pressure has increased, meaning that the gaseous particles are colliding with the internal wall of the balloon with a higher frequency and more energy, the balloon will begin to inflate, or in other words, the volume of the balloon will increase.
This seems to contradict Boyle's law, which states that the pressure of a gas is inversely proportional to its volume. In the scenario I described above, it seems clear to me that it was the increase in frequency of the gaseous particles colliding with the internal wall of the balloon, that too with more energy, which altogether is known as an increase in pressure, that caused the balloon to inflate.
I perfectly understand Boyle's law when the idea of a pump is used, where you can use a slider to change the volume of a gas and clearly see its inversely proportional relationship with the pressure of the gas, however, can't seem to understand what is incorrect in my logic, from which I seemingly have contradicted Boyle's law.
I am a high-school student who just learnt about these laws, and out of curiosity decided to ask this question in hopes of clearing my doubts and fundamentally gaining a better understanding. Any help will be greatly appreciated, thanks in advance.