Implemented Write SYSCALL