I heard from somewhere that if a person dies without writing a will on whom to give the inheritance then the portion of the inheritance will not be given to the women. Is that true and if it's true then please provide the reference.

An inheritance regardless if written or not written must be divided according to the shares as allocated in the Quran. There is no basis for the above.