dont write back the wallet to disk if it wasnt modified