The commitment of mesenchymal cells to the specific cell fate of an osteoblast. An osteoblast is a bone-forming cell which secretes an extracellular matrix. Hydroxyapatite crystals are then deposited into the matrix to form bone.