Write buffer b to the IO stream. Return the number of bytes written, which is always the length of b in bytes. Raise BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment.
io/BufferedWriter.write
BufferedWriter.write