TS-2305: fall back to ftruncate on posix_fallocate failure

Conflicts:
	CHANGES