Dodgers SS Ramirez homers, injures finger in win over Rockies