Actually, the Torah is but a mere fragment of the comprehensive spiritual law (Romans 2:14-15), the spiritual law having been infused within human kind on Day-6 as a bulwark against unrestrained narcissism as the spiritual law is arbitrated by the human conscience. It is that same spiritual law that judged Satan of covetousness before the creation of Time and that same law judged the Adamic and Noahic generations of defilement with the demonic resulting in the extinction of all mankind save eight.
When Elohim speaks of writing His laws on the heart of mankind, He speaks of the New Covenant where the indwelling Holy Spirit, given to all who trust in Messiah Jesus as Savior; these who have trusted, believed in Jesus are granted the Gift of the Spirit to dwell within them (Ephesians 1:13-14) and it is the indwelling Holy Spirit who becomes the Arbiter of the redeemed, enlivened, conscience, the new man (2 Corinthians 5:17), and the Spirit walks the new man and new woman in daily sanctification producing divine fruit through them that fulfills all law (Galatians 5:23); both, codified and spiritual, and this divine fruit (Galatians 5:16-23) actually pleases the Father and proves one to be a disciple of Jesus (John 15:8).
If Torah were written upon the heart void the presence of the indwelling Holy Spirit to Arbitrate the redeemed conscience, Torah would be as impotent concerning righteousness with the Father as it was in the Old Covenant (Romans 8 ).
