SerialSocketEmulator: Use sendall() in write()