Learmonth overcomes Ballarat in thriller