Warriors ride huge third quarter to beat Kings and get back on winning track