Extra backpack space in AdventureQuest Worlds is bought with AdventureCoins — you need 200 of them.
AdventureCoins are the game's premium currency, so this is one of those upgrades that either comes from purchasing them or from having a stockpile saved up. Once you have the 200, the expansion is applied to your inventory capacity.
If you are short, it is worth checking in-game sales, since inventory expansions are the kind of thing that occasionally turns up discounted.