Added gen_syscall.c with an incomplete version of sys_write