HOUSTON — A's closer Grant Balfour hadn't blown a save all season, and his streak of 44 straight saves was an Oakland record and the sixth longest run in major league history.
But things went wrong quickly in the ninth inning on Tuesday night, and Balfour ended up with the loss when the Houston Astros rallied for a 5-4 win.
"It got a little bit ugly, and I didn't make good pitches," he said. "I should have never put the team in that situation. I'm better than that."
Rookie Jonathan Villar scored the winning run from second base in the ninth inning when catcher Derek Norris had a passed ball and then made a bad throw on the same play to give the Astros the victory.
Houston ended a 10-game losing streak against the A's this season and a six-game skid overall.
The Astros trailed 4-2 entering the ninth before Matt Dominguez hit a two-run homer off Balfour (0-2) to tie it.
Justin Maxwell hit an infield single to start the inning and advanced to second when Balfour attempted to make a throw to first from his knees and bounced it in the dirt for an error.
Balfour thought that play was the key to the inning.
"I feel like the whole inning could have been totally different had I not put myself in that situation," he said. "It wasn't what I wanted it to be tonight."
Oakland manager Bob Melvin agreed with his closer.
"He's been so good for us," Melvin said. "The first guy gets on in what looks like potentially could have been an out, and the next guy hits a homer. His command just wasn't good after that."
It was Balfour's first blown save since April 29, 2012.
"It was a good run," he said. "I should have had more, but I guess 44 is a remarkable number, so you can't be too upset about it. We're starting all over again. To me, it's just a number, but I'm happy I did it."
The homer by Dominguez bounced off the wall in left-center as Coco Crisp desperately tried to climb to grab it.
Villar, who was playing his second major league game, doubled with one out, and Jose Altuve walked before the defensive miscue ended it.
It was the second straight game that the A's made three errors.
"We've been a bit sloppy lately, and tonight, it definitely cost us," Melvin said. "We've already addressed it. It's just a period where we're not playing crisp baseball."
Brandon Moss put Oakland on top 4-2 with a two-run homer in the eighth inning.
Josh Fields (1-1) pitched a scoreless ninth for the win.
The game was tied 2-2 when reliever Jose Cisnero plunked Josh Donaldson with two outs. Moss then sent a 95 mph fastball into the second deck in right field for his 17th homer.
Houston starter Jarred Cosart, yielded seven hits and two runs – one earned – in seven innings in his second major league start after being recalled from Triple-A Oklahoma City on Tuesday.
Oakland starter Jarrod Parker allowed five hits and one earned run in seven innings.
John Jaso walked with one out in the first inning and Jed Lowrie followed with a single. Josh Donaldson singled, but Jaso was out at third on the play.
The Athletics took a 1-0 lead when Moss reached on an error by third baseman Matt Dominguez that allowed Lowrie to score.
Villar got things going for Houston with a double in the first. The Astros tied it 1-1 with back-to-back singles by Altuve and Jason Castro.
The bases were loaded in the third when Moss grounded into a double play that Crisp scored on to put Oakland up 2-1.
The 23-year-old Cosart took a no-hitter into the seventh inning and got the win in his debut against Tampa Bay just before the break, allowing two hits and no runs in eight-plus innings. He was sent to Oklahoma City after that game.
He wasn't as sharp early on Tuesday, but starting rolling in the fourth, pitching a 1-2-3 inning. Crisp singled with one out in the fifth, but Cosart faced the minimum in that inning after Houston turned a double play. Donaldson hit a one-out double in the sixth before Cosart retired the next two batters to end the threat.
Pinch-hitter Yoenis Cespedes grounded into a double play in the seventh to erase a leadoff walk by Chris Young. Eric Sogard doubled, but Cosart finished his night by battling Crisp on a seven-pitch at-bat before he struck him out looking, leaving Crisp angrily shaking his head at the plate.
Barnes robbed Young of a hit with a nifty diving catch in center field in the fourth inning.
NOTES: The series wraps up on Wednesday when Oakland's A.J. Griffin opposes Bud Norris ... CF Barnes left before the seventh with a mild left calf strain. ... Cespedes, the Home Run Derby champ, was out of the starting lineup for the fifth straight game because of a sore left wrist. ... A's LHP Brett Anderson, on the disabled list since May 1 with a stress fracture in his right foot, is scheduled to throw 45 pitches in a bullpen session on Wednesday. He felt good after throwing 35 pitches on Monday.