Wright wins 17th; Riley, Acuña homer as Braves edge Rockies