now checking the return value of ftruncate