I know what you mean. These kinds of questions are, frankly, annoying. The trick is that you're supposed to calculate the work done "against the atmosphere" and not by the gas; in other words, the work done with respect to the atmosphere. The atmosphere gains energy, so the work is positive.