so how did you root? maybe you only unlocked the bootloader? if you are using the default recovery, then you could not have flashed the su binaries. you need to flash a custom recovery for that, either twrp or cwm recoveries. stock recovery doesnt give you an option to wipe dalvik, only custom recoveries do.
Sent from my Nexus 5 using XDA Premium 4 mobile app