add a function of 'writeDfToRange'