writing Money S4 result to a file