simple sys_write implemented