But isn't the atmosphere unit a constant taken as the average pressure at sea level and not the standardized pressure accepted by IUPAC?
That's more or less how it was defined initially, but it doesn't matter here.
Actually I am not sure what is your problem now, I thought my explanation clearly shows what you did wrong.
You stated
One mole of any gas takes up 22.4 L under s.t.p.
and you used this information to calculate volume of the gas. That is OK as long as the pressure is 1 atm, but then you calculated volume using ideal gas equation and pressure of 100 kPa, and you were surprised the result is different. It must be different, as these volumes reflect different pressures.