A dream inspiring a story is different than placing a description of a dream in a story. When you describe a character's dream, it has to be sharper than reality in some way, and more meaningful. It has to somehow speak to plot, character, and all the rest. If you're writing something fantastical, it can be a really deadly choice because your story already has elements that can seem dreamlike.