Hi Karla,
It can be difficult to stop the mushrooms fruiting once the bag is fully colonised. Closing over the filter patch and refridgerating the bag below 2C can help to prevent mushrooms from forming, but to a large degree it will also depend upon the strain you are using and how well it will keep like this.
It is always best wherever possible to fruit the bags when they are at their optimium soon after full colonisation.
Hope this helps!
Best wishes,
Adam