sh: add writesb(), readsb(), writesw() and readsw() to io.h