Which configuration should I change in order to increase the inventory of a product back to what it was if the order was cancelled?
Thanks,
Login to the admin and change System>Config>Catalog>Inventory>Stock Options>Set Items' Status to be In Stock When Order is Cancelled
= Yes
. That should do it for you.