The volume doesn't need to decrease in that process. The increase in temperature could compensate for the increase of pressure in the ideal gas law, and so the volume could remain constant. It doesn't have to remain constant, I guess, but that would probably be complicated to calculate a simple form for the work, since the temperature changes with the volume too.
If temperature happened to remain constant, along with the particle number, while pressure increased, then volume would have to decrease, and if the process is quasistatic, then [itex]dW = PdV[/itex], and so
[tex]W = \int_{V_0}^{V_f}P dV = n k_B T \int_{V_0}^{V_f}\frac{dV}{V}[/tex]
which you can integrate to find the work done. (Note that [itex]nk_B = NR[/itex] - I've just expressed the ideal gas law in terms of boltzmann's constant and particle number instead of the gas constant and number of moles).