In بِسْمِ اللهِ, the initial alif of اِسْمِ is omitted in writing when the preposition بـ joins it.

Introduction to Prepositional Phrases and the Prepositions بـ، تـ، و، كـ، فِي