Ballarat defeats Bendigo in final over thriller