Nastaliq was officially used in whole of North india including the bhojpuri region. All official works were done in this script. Even hindi was written in nastaliq. This is what today known as urdu. Devnagri was adopted later on to restore its traditional script used before islamic rule in india.