This is inaccurate.
If you go here Islam and Mohammed you can read a bit about "allah's" place in Mohammed's arabic tribe.....allah was a moon god. Given the history of moon god's in that region, that puts him in league with that pantheistic groupings of god names that come from that region.....ba'al, ashtoreth, molech, in particular were associated with heavenly bodies that were worshippped.