This one of those things that won't get you anywhere. Even if you got the indictment set aside, the DA can turn around and re-submit the charges to a new grand jury. If you filed a dismissal and it was denied, the proper avenue is to appeal that dismissal, not a habeas petition. Presumably you have an attorney and should be discussing this with him/her.

