Ideally the safe would be best installed to a sold brick wall or concrete floor. However, if this method is not available to you, fixing the safe into timber joists using heavy duty wood screws is certainly better than no fixing at all. Before doing this I would advise checking with your insurer as they may not provide cover if installed to wood.
Tom W