Corrects tm_fs_write to return 0 on success.