changed writefile() to allow writing of different object and filename
changed writefile() to allow writing of different object and filename

Ensembl/ensembl-pipeline,Ensembl/ensembl-pipeline,Ensembl/ensembl-pipeline