syscall: added sys_write and sys_exit