Override write(byte[] b, int off, int len) in FilterOutputStream for better performance


Closes #8748