An implementation of writeData as generic

Hi Alexander, i've written `writeData2` (name could be temporary in the case) as an S3 generic. There are S3 methods for common data analysis object (`example(writeData2)` reproduce a bit of `xtable` gallery). Of course it's a first implementation.
If you are interested, very glad to contribute.
Bye Luca