Walker's bloop single gives Pirates 2-1 win