Implemented ftruncate systemcall
Implemented truncate syscall.