Fixed sys_write sys_read sys_open console_open according to Choi's review