Measurement of the energy response of the ATLAS calorimeter to charged pions from W-+/- -> tau(+/-) (->pi(+/-)nu(tau))nu(tau) events in Run 2 data