added write uint8/16 l/b