implemented fs_truncate and fs_ftruncate