Hi Praveen,
You can do a file written at mapping level, however if you don't want to send that message to the receiver, you can use the condition editor on the receiver determination/ICO to send the XML to the webservice or to the file adapter.
Regards.