To keep it simple, you should forget about the pressure on the external face of the piston. Whether the energy goes against the pressure on the other side of the piston, fights friction, or produces work somewhere else is irrelevant to your problem.
This means that your calculations for the adiabatic case are correct but not the ones for the isobaric case. I gave you the corrected calculations in
post #22. It corresponds to the same answer given in
post #21 by
@Chestermiller .
In your calculations, the final pressure at the end of your adiabatic process is NOT what you refer to as "external pressure", i.e. the pressure on the other side of the piston.
The fact that the adiabatic case is dropping to the atmospheric pressure in your example - the same as the pressure on the other side of the piston - should be considered coincidental, nothing more. In fact, in an engine where the compression ratio is equal to the expansion ratio (Otto or Diesel cycles for example), the final pressure after the expansion process is always greater than the atmospheric pressure. The Atkinson or Miller cycles do have a larger expansion ratio than their compression ratio, effectively bringing the final pressure to atmospheric pressure.