IOOutputFilter: Updated the signature of the 'write' function to correspond to the new functionObject