Barnsley boosted their Sky Bet Championship survival hopes with an emphatic 4-1 win at relegation rivals Yeovil.