Implemented simple write() for stdout and stderr. Also added EOK to list of errnos.