It wasn’t pretty, but Hoosiers earn important conference win