put in code for truncate operation (still need ftruncate)