Gomes homers, Middlebrooks OK in loss to O's