Solved. It works if don’t pass Arrow.write an IOStream, but the string with the file path.
Arrow.write
IOStream