Fix a quota arithmetic bug in writeFile (detected via sqlfs_test_quota.js)