fix bug during file stagin on agent-level

Pilot-Data HDFS adaptor