add syswrite method. This method uses the syswrite internally. Writing is not buffered