Fix off-by-one errors in twi_read/write_nbytes()

Thanks to Markus Vuorio for reporting this bug.