add write to syscall.c