Rosario scores on balk to lift Twins over Brewers, 5-4