Add I/O error check for --write with single arg
Fix misaligned memory access issue
Introduce ems_size_t type

representing the range of values that can be send to the cardridge+1:
from 0 to BANK_SIZE*2

Normally, a 24 bit unsigned type should be sufficient.
USB buffer size is an int type.