quota: fixup *_write_file_info() to return proper error code