Danny Rose scored an 85th-minute tap-in as Barnsley beat 10-man Burnley 1-0 in the FA Cup third round at Oakwell.